const DbTypes= {

    MySQL: {
        driver: 'com.mysql.cj.jdbc.Driver',
        connectionString: 'jdbc:mysql://localhost:3306/testdb?useSSL=false&serverTimezone=UTC'
    },
    SQLServer: {
        driver: 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
        connectionString: 'jdbc:sqlserver://localhost:1433;databaseName=testdb;encrypt=true;trustServerCertificate=true;'
    },
    SQLite: {
        driver: 'org.sqlite.JDBC',
        connectionString: 'jdbc:sqlite:/path/to/your/database.db'
    },
    Oracle: {
        driver: 'oracle.jdbc.driver.OracleDriver',
        connectionString: 'jdbc:oracle:thin:@localhost:1521:ORCL'
    },
    PostgreSQL: {
        driver: 'org.postgresql.Driver',
        connectionString: 'jdbc:postgresql://localhost:5432/testdb'
    },
    DB2: {
        driver: 'com.ibm.db2.jcc.DB2Driver',
        connectionString: 'jdbc:db2://localhost:50000/SAMPLE'
    },
    MariaDB: {
        driver: 'org.mariadb.jdbc.Driver',
        connectionString: 'jdbc:mariadb://localhost:3306/testdb'
    },
    H2: {
        driver: 'org.h2.Driver',
        connectionString: 'jdbc:h2:~/test;AUTO_SERVER=TRUE'
    },
    HSQLDB: {
        driver: 'org.hsqldb.jdbc.JDBCDriver',
        connectionString: 'jdbc:hsqldb:mem:testdb;shutdown=true'
    },
    Firebird: {
        driver: 'org.firebirdsql.jdbc.FBDriver',
        connectionString: 'jdbc:firebirdsql:localhost:3050:/var/libs/firebird/2.5/data/testdb.fdb'
    },
    Sybase: {
        driver: 'com.sybase.jdbc4.jdbc.SybDriver',
        connectionString: 'jdbc:sybase:Tds:localhost:5000/testdb'
    }
};
const TaskTypes = {
    UPDATE:{
        info:"说明"
    },
    INSERT:{
        info:"说明"
    },
    REBUILD:{
        info:"说明"
    },
}
function toCamelCase(str) {
    return str
        .split('_')
        .map((word, index) => {
            if (index === 0) {
                // 首字母大写
                return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
            } else {
                // 其他单词首字母大写
                return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
            }
        })
        .join('');
}


module.exports = {
    DbTypes,TaskTypes,toCamelCase
}
